#!/bin/bash

# this deliver precompiled package
# linux
# x86_64

src=$(adapt tool get http://www.cs.umd.edu/~mount/ANN/Files/1.1.2/ann_1.1.2.tar.gz)

echo ANN unpacked to $src

pushd $src

#install here
prefix=$(adapt query sys/prefix)

adapt make linux-g++
# it does not have (yet?) installation script. Install manually
cp -r include/* $prefix/include
cp lib/* $prefix/lib

popd

exit 0
